package com.edu.gcu.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.edu.gcu.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

/**
 * 角色和菜单关联 sys_role_menu
 *
 * @author luomang
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value ="sys_role_permission")
public class SysRolePermission extends BaseEntity {
    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 角色ID
     */
    @TableId(value = "role_id")
    private Long roleId;

    /**
     * 菜单ID
     */
    @TableId(value = "menu_id")
    private Long menuId;
}
